*{
    margin: 0;
    padding: 0;
    list-style: none;
}

html,
body{
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1B1B1B;
}
.midground,
.foreground,
.top{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}
.midground {
    background: url("../img/backg/mid.png");
    -webkit-animation: cc 100s linear infinite;
    -moz-animation: cc 100s linear infinite;
    -o-animation: cc 100s linear infinite;
    animation: cc 100s linear infinite;
}
.foreground {
    background: url("../img/backg/fore.png");
    -webkit-animation: cc 153s linear infinite;
    -o-animation: cc 153s linear infinite;
    -moz-animation: cc 153s linear infinite;
    animation: cc 153s linear infinite;
}
.top {
    background: url(../img/backg/mid.png);
    -webkit-animation: dd 100s linear infinite;
    -o-animation: dd 100s linear infinite;
    animation: da 100s linear infinite;
}

.wrapper{
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;    /* opacity: 0.5; */
}

.wrapper .content{
    display: flex;
    width: 80%;
    height: 80%;
    align-items: center;
    /* border: 1px solid orange; */
    justify-content: space-between;
}

.wrapper .content .item{
    position: relative;
    width: 11%;
    height: 100%;
    color: #fff;
    background-color: #333;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.2);
     
}

.wrapper .content .item .inner{
    width: 100%;
    height: 100%;
    position: relative;
}
/*背景图片动画*/
.wrapper .content .item:nth-of-type(1) .inner{
    transition: transform 1.4s ease-in-out 0.1s;
}
.wrapper .content .item:nth-of-type(2) .inner{
    transition: transform 1.3s ease-in-out 0.2s;
    
}
.wrapper .content .item:nth-of-type(3) .inner{
    transition: transform 1.2s ease-in-out 0.3s;
    
}
.wrapper .content .item:nth-of-type(4) .inner{
    transition: transform 1.1s ease-in-out 0.4s;
    
}
.wrapper .content .item:nth-of-type(5) .inner{
    transition: transform 1s ease-in-out 0.5s;
    
}
.wrapper .content .item:nth-of-type(6) .inner{
    transition: transform 0.9s ease-in-out 0.6s;
    
}
.wrapper .content .item:nth-of-type(7) .inner{
    transition: transform 0.8s ease-in-out 0.7s;
    
}
.wrapper .content .item:nth-of-type(8) .inner{
    transition: transform 0.7s ease-in-out 0.8s;
    
}
.wrapper .content .item .inner .bjPic{
     width: 100%;
     height: 100%;
     border-radius: 20px;
     opacity: 0.5;
     transition: all 0.5s;
 }



.wrapper .content .item:nth-of-type(1) .inner .bjPic{
    background-image: url("../img/1.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(2) .inner .bjPic{
   background-image: url("../img/2.jpeg");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(3) .inner .bjPic{
   background-image: url("../img/3.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(4) .inner .bjPic{
   background-image: url("../img/4.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center ;
}
.wrapper .content .item:nth-of-type(5) .inner .bjPic{
    background-image: url("../img/5.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(6) .inner .bjPic{
    background-image: url("../img/6.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(7) .inner .bjPic{
     background-image: url("../img/7.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item:nth-of-type(8) .inner .bjPic{
    background-image: url("../img/8.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.wrapper .content .item .inner .dir{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s linear 0.3s, font-size 0.5s;
}

.wrapper .content .item:hover .inner .bjPic{
    opacity: 1;
}
.wrapper .content .item:hover .inner .dir{
    font-size: 18px;
    font-weight: bold;
}
.wrapper .content .item .showBox{
    width: 100%;
    height: 100%;
    /* position: absolute; */
    opacity: 0;
}
.wrapper .content .item .showBox .showBox-dir{
    position: absolute;
    left: 50px;
    top: 50px;
}
.wrapper .content .item .showBox .close{
    width: 30px;
    height: 30px;
    position: absolute;
    right: 50px;
    top: 50px;
}
.wrapper .content .item .showBox .close::before,
.wrapper .content .item .showBox .close::after{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
}
.wrapper .content .item .showBox .close::before{
    transform: rotateZ(45deg);
}
.wrapper .content .item .showBox .close::after{
    transform: rotate(-45deg);
}

/*初始状态*/
.init .content .item .inner{
    transform: translateY(100%);
}

/*点击展示动画*/
.startShowItem .content .item{
    transition: width 0.5s ease-in, height 0.5s ease-in;
}
.startShowItem .content .item.active{
    width: 100%;
}

.startShowItem .content .item:not(.active){
    height: 0%;
    width: 0%;
}
.startShowItem .content .item .inner .dir{
    opacity: 0;
    transition: opacity 0.5s linear 0.2s;
}
.startShowItem .content .item .inner .showBox{
    opacity: 1;
    transition: opacity 0.5s linear 0.5s;
}

@-webkit-keyframes cc {
    from{
        background-position: 0 0;
        transform: translateY(10px);
    }
    to{
        background-position: 600% 0;
    }
}
@-o-keyframes cc {
    from{
        background-position: 0 0;
        transform: translateY(10px);
    }
    to{
        background-position: 600% 0;
    }
}
@-moz-keyframes cc {
    from{
        background-position: 0 0;
        transform: translateY(10px);
    }
    to{
        background-position: 600% 0;
    }
}
@keyframes cc {
    0%{
        background-position: 0 0;
    }
    100%{
        background-position: 600% 0;
    }
}
@keyframes da {
    0%{
        background-position: 0 0;
    }
    100%{
        background-position: 0 600%;
    }
}
@-webkit-keyframes da {
    0%{
        background-position: 0 0;
    }
    100%{
        background-position: 0 600%;
    }
}
@-moz-keyframes da {
    0%{
        background-position: 0 0;
    }
    100%{
        background-position: 0 600%;
    }
}
@-ms-keyframes da {
    0%{
        background-position: 0 0;
    }
    100%{
        background-position: 0 600%;
    }
}
